<template>
  <svg v-bind="$attrs">
    <use :xlink:href="`#svg-${name}`"></use>
  </svg>
</template>

<script setup lang="ts">
withDefaults(defineProps<{ name: string }>(), {
  name: ''
})

defineOptions({
  name: 'CoreSvg'
})
</script>

<style scoped lang="scss">
svg {
  width: 1em;
  height: 1em;
  overflow: hidden;
  vertical-align: text-top;
  fill: currentcolor;
  stroke: currentcolor;
}
</style>
